/**
 * 库设置的侧导
 */

import React from 'react';
import { Link } from 'utils/router';
import { Nav } from '@teamix/ui';
import intl from '../../../../../../../locale';

const { pathResource } = window.FORCE;

export default class groupSettingsNav extends React.Component {
  render() {
    const { defaultActiveKey } = this.props;

    return (
      <Nav
        type="normal"
        direction="ver"
        triggerType="click"
        defaultSelectedKeys={defaultActiveKey}
        // onSelect={onChange}
        {...this.props}
      >
        <Nav.Item key="settings">
          <Link to={`/${pathResource.fullPath}/settings`}>
            {intl.get({
              id: 'code-assets.containers.tab.BasicSettings',
              defaultMessage: '基本设置',
            })}
          </Link>
        </Nav.Item>
      </Nav>
    );
  }
}
